{load_language_text section="buttons"}
<p><input type='text' id='tab_headline' style='width: 755px;' /></p>

<p><textarea id='tab_content' name='tab_content' style='width: 755px; height: 300px;'></textarea></p>

<div class="google_category_save">
    <a href="#" class="button cancel" style="float: left;">{$txt.canel}</a>
    <a href="#" class="button save" style="float: right;">{$txt.save}</a>
    <div style="clear: both;"> <!-- --> </div>
</div>

{literal}
<script type="text/javascript">
    $('.lightbox_package_header').html('Tabs');
    $('.lightbox_package_content #tab_headline').val($(container).find('.product_tab_headline a').html());
    $('.lightbox_package_content #tab_content').html($(container).find('textarea').html());
    
    if(use_wysiwyg == true){
        var fckeditor = new FCKeditor('tab_content');
        fckeditor.BasePath = "gm/fckeditor/";
        fckeditor.ToolbarSet = "Big";
        fckeditor.Width = 755;
        fckeditor.Height = 300;
        fckeditor.Config["AutoDetectLanguage"] = true;
        fckeditor.ReplaceTextarea();
    }
    
    $('.lightbox_package_content .cancel').bind('click', function(){
        lightbox_close();
        return false;
    });
    
    $('.lightbox_package_content .save').bind('click', function(){
        var tmp_tab_content = '';
        if(use_wysiwyg == true){
            tmp_tab_content = $.trim(FCKeditorAPI.GetInstance('tab_content').GetHTML(true));
        }else{
            tmp_tab_content = $.trim($('#tab_content').html());
        }
        if($.trim($('.lightbox_package_content #tab_headline').val()) != '' && tmp_tab_content != ''){
            $(container).find('.product_tab_headline a').html($('.lightbox_package_content #tab_headline').val());
            $(container).find('input').val($('.lightbox_package_content #tab_headline').val());
            $(container).find('textarea').html(tmp_tab_content);
            lightbox_close();
        }
        return false;
    });
</script>
{/literal}